package com.ruoyi.system.domain;

import java.time.format.DateTimeFormatter;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 转入和转出订单对象 in_and_out_order
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InAndOutOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private Long id;

    /** 交易时间 */

    @Excel(name = "交易时间")
    private String rechargeTime;

    /** 交易人(本人) */
    @Excel(name = "交易人(本人)")
    private Long userId;
    private SysUser senderUser;
    /** 交易目标 */
    @Excel(name = "交易目标")
    private Long personId;
    private SysUser recipientUser;
    /** 交易行为(0为转入,1为转出) */
    @Excel(name = "交易行为(0为转入,1为转出)")
   private Long act;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private Double price;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private String del;
    private TransactionMiddle middle;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRechargeTime() {
        return rechargeTime;
    }

    public void setRechargeTime(String rechargeTime) {
        this.rechargeTime = rechargeTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public SysUser getSenderUser() {
        return senderUser;
    }

    public void setSenderUser(SysUser senderUser) {
        this.senderUser = senderUser;
    }

    public Long getPersonId() {
        return personId;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public SysUser getRecipientUser() {
        return recipientUser;
    }

    public void setRecipientUser(SysUser recipientUser) {
        this.recipientUser = recipientUser;
    }

    public Long getAct() {
        return act;
    }

    public void setAct(Long act) {
        this.act = act;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDel() {
        return del;
    }

    public void setDel(String del) {
        this.del = del;
    }

    public TransactionMiddle gettSource() {
        return middle;
    }

    public void settSource(TransactionMiddle tSource) {
        this.middle = tSource;
    }

    public InAndOutOrder(Long id, String rechargeTime, Long userId, Long personId, Long act, Double price, String del) {
        this.id = id;
        this.rechargeTime = rechargeTime;
        this.userId = userId;
        this.personId = personId;

        this.act = act;
        this.price = price;
        this.del = del;
    }
}
